Skip to content

fix: initialization for CADENCE_WEB_PORT in dev#1230

Merged
Assem-Uber merged 2 commits intocadence-workflow:masterfrom
Assem-Uber:fix/development-web-port
Apr 7, 2026
Merged

fix: initialization for CADENCE_WEB_PORT in dev#1230
Assem-Uber merged 2 commits intocadence-workflow:masterfrom
Assem-Uber:fix/development-web-port

Conversation

@Assem-Uber
Copy link
Copy Markdown
Contributor

@Assem-Uber Assem-Uber commented Apr 1, 2026

Summary

Fix initialization of CADENCE_WEB_PORT env variable to unify the value of the port in the dynamic code value & the value that dev server starts with. The fix is not needed for production docker images as the environment variable is initialized correctly.

Details

The web server used to start on port 8088 while accessing the value in dynamic config was 3000. Setting the environment variable before running the server makes sure that both starting port and dynamic config value is 8088

Testing

  • Changed the port and tested the effective value through logs and usage of the web server.

@Assem-Uber Assem-Uber changed the title fix initialization for CADENCE_WEB_PORT in dev fix: initialization for CADENCE_WEB_PORT in dev Apr 7, 2026
@Assem-Uber Assem-Uber marked this pull request as ready for review April 7, 2026 08:16
@gitar-bot
Copy link
Copy Markdown

gitar-bot bot commented Apr 7, 2026

Code Review ✅ Approved

Initializes CADENCE_WEB_PORT environment variable for development environment. No issues found.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

},
"scripts": {
"dev": "next dev -p ${CADENCE_WEB_PORT:-8088} -H ${CADENCE_WEB_HOSTNAME:-0.0.0.0} | pino-pretty --messageKey message",
"dev": "CADENCE_WEB_PORT=${CADENCE_WEB_PORT:-8088} next dev -p ${CADENCE_WEB_PORT:-8088} -H ${CADENCE_WEB_HOSTNAME:-0.0.0.0} | pino-pretty --messageKey message",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still necessary if we pass the env variable?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the only way nextJs would start the server on that port

@Assem-Uber Assem-Uber merged commit 83f1bd3 into cadence-workflow:master Apr 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants